package com.fhao.system.domain.question.dto;

import jakarta.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class QuestionAddDTO {
    @NotEmpty(message = "标题不能为空")
    private String title;

    @NotEmpty(message = "难度等级不能为空")
    private Integer difficulty;

    @NotEmpty(message = "时间限制不能为空")
    @Min(value = 0, message = "时间要求最低不能小于0")
    private Long timeLimit;

    @NotEmpty(message = "空间限制不能为空")
    @Min(value = 0, message = "空间要求最低不能小于0")
    private Long spaceLimit;

    @NotEmpty(message = "内容不能为空")
    private String content;

    @NotEmpty(message = "测试用例不能为空")
    private String questionCase;

    @NotEmpty(message = "默认代码块不能为空")
    private String defaultCode;

    @NotEmpty(message = "main函数不能为空")
    private String mainFuc;
}
